/************************************************
 * Copyright (c) 2007 ~ 2009, 
 * All rights reserved.
 * Version   : 1.0
 * Author    : lengsh@alibaba-inc.com 
 * Date      : 2009.1.2
 ************************************************/


#ifndef __PANDA_ACL_HANDLE_H_
#define __PANDA_ACL_HANDLE_H_

#include <string>
#include <map>
using namespace std;

class aclHandler
{
	private:
		static aclHandler *_instance;
	public:
		static aclHandler *Instance(const char *confFile = NULL);
		static void Release();
		~aclHandler(); 
                bool AclCheck(const char *ip);
                void Print();
	protected:
		aclHandler() {   }
		bool init(const char *confFile); 
	private:
		map < string, int > m_IPs;

};


#endif
